@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

body {
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(51 65 85);
}

.section-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #38bdf8; /* sky-400 */
}
.section-icon-img {
    width: 2.5rem;
    height: 2.5rem;
    filter: brightness(0) invert(1);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.section-content {
    color: #cbd5e1; /* slate-300 */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgb(30 41 59 / 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #38bdf8;
    transition: background-color 0.3s;
}

.feature-item:hover {
     background-color: rgb(51 65 85 / 0.7);
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #38bdf8;
    flex-shrink: 0;
}


#header {
    border-bottom: 1px solid rgb(51 65 85 / 0.5);
}

.nav-link {
    position: relative;
    transition: color 0.3s;
}
.nav-link:hover {
    color: #38bdf8;
}
.nav-link.active {
    color: #38bdf8;
    font-weight: 700;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: #38bdf8;
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
    right: auto;
    left: 0;
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.layer {
    background-color: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.layer:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 4px 6px -4px rgb(0 0 0 / 0.2);
}

.layer-icon-wrapper {
    background-color: #0f172a; /* slate-900 */
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.layer-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #38bdf8;
}

.layer-icon-img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.layer-info {
    text-align: right;
}

.layer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.layer-desc {
    font-size: 0.9rem;
    color: #94a3b8; /* slate-400 */
}

.advantage-card {
    background-color: #1e293b;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    border-bottom: 3px solid #38bdf8;
    transition: transform 0.3s;
}
.advantage-card:hover {
    transform: translateY(-5px);
}
.advantage-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #38bdf8;
    margin: 0 auto 1rem;
}
.advantage-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.advantage-desc {
    font-size: 0.9rem;
    color: #94a3b8;
}


.timeline {
    position: relative;
    padding-right: 2rem;
    border-right: 2px solid #334155;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    right: -2.6rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #38bdf8;
    border: 3px solid #0f172a;
}
.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.timeline-desc {
    color: #94a3b8;
    margin-top: 0.5rem;
}

table {
    border-collapse: collapse;
}

table th, table td {
    border-color: #334155;
}

.knowledge-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e2e8f0;
    font-weight: 500;
}
.knowledge-step i {
    width: 2.5rem;
    height: 2.5rem;
    color: #38bdf8;
}

.escalation-level {
    background-color: #0f172a;
    border-right: 4px solid #38bdf8;
    padding: 1rem;
    border-radius: 0.5rem;
}
.escalation-level.escalation-critical {
    border-color: #f87171; /* red-400 */
}
.escalation-level span {
    color: white;
    font-weight: bold;
}
.escalation-level p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.escalation-arrow {
    text-align: center;
    color: #334155;
}

.standard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}
.standard-item img {
    object-fit: contain;
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
}
.standard-item p {
    margin-top: 1rem;
    color: #94a3b8;
}
